<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>flex父项</title>
    <style>
        body {
            display: flex;
            justify-content: center;
        }
        div {
            /* 给父级添加flex属性 */
            display: flex;
            width: 300px;
            height: 100px;
            background-color: beige;
            /* 默认的主轴是x轴/行/row , 那么y轴/column就是侧轴喽
            /* 我们的元素是跟着主轴来排列的 */
            /* flex-direction: row;
            flex-wrap: wrap; */
            flex-flow: row wrap;
            justify-content: space-between;
            /* align-items: center; */
            align-content: center;
        }
        span {
            width: 90px;
            height: 45px;
            background-color: aqua;
        }
    </style>
</head>
<body>
    <div>
        <span>1</span>
        <span>2</span>
        <span>3</span>
        <span>4</span>
        <span>5</span>
    </div>
</body>
</html>